﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDf_Main_CostBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDf_Main_Cost;

        void Remove(IDf_Main_Cost entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDf_Main_Cost;



        /// <summary>
        /// 资金不受限 资金分配
        /// </summary>
        /// <param name="roadnetid"></param>
        /// <param name="analy_year"></param>
        void Insert(string anniname, string analy_year);

        /// <summary>
        /// 获取路网的所有决策路段
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="roadnetname">路网名称</param>
        /// <returns></returns>
        List<T> GetDivi<T>(string roadnetname) where T : class,IDn_Divi_Planning;

        /// <summary>
        /// 获取路网的所有决策路段
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="roadnetname">路网名称</param>
        /// <returns></returns>
        List<T> GetDivi<T>(string anniname, string Analy_Year) where T : class,IDn_Divi_Planning;
     
    }
}
